package com.longy.springcloud.service;

import cn.hutool.core.util.IdUtil;
import com.longy.springcloud.domain.Payment;
import com.longy.springcloud.service.impl.PaymentServicesImpl;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.annotation.Resource;


@Component
public class testService {
    @Resource
    private PaymentServicesImpl paymentServices;

    public String sout() {
        Payment payment = new Payment();
        payment.setSerial("TransactionalTest");
        int creat = paymentServices.Creat(payment);


        int i = 1 / 0;
        return "test";
    }

}
